﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="TicketDetail.aspx.cs" Inherits="TicketDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <strong><span style="font-size: 16pt">Ticket Detail<br />
    </span></strong>
    &nbsp;<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:sqlString %>" 
        
        SelectCommand="SELECT * FROM [Airline_TicketDetail] WHERE ([TicketID] = @TicketID)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="-1" Name="TicketID" 
                QueryStringField="TicketID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:DataList ID="DataList1" runat="server" DataKeyField="TicketDetailID" 
        DataSourceID="SqlDataSource1" CellPadding="4" ForeColor="#333333" 
        onselectedindexchanged="DataList1_SelectedIndexChanged" Width="100%">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <ItemTemplate>
            TicketDetailID:
            <asp:Label ID="TicketDetailIDLabel" runat="server" 
                Text='<%# Eval("TicketDetailID") %>' />
            <br />
            TicketID:
            <asp:Label ID="TicketIDLabel" runat="server" Text='<%# Eval("TicketID") %>' />
            <br />
            First Name:
            <asp:Label ID="First_NameLabel" runat="server" 
                Text='<%# Eval("[First Name]") %>' />
            <br />
            Last Name:
            <asp:Label ID="Last_NameLabel" runat="server" 
                Text='<%# Eval("[Last Name]") %>' />
            <br />
            Age:
            <asp:Label ID="AgeLabel" runat="server" Text='<%# Eval("Age") %>' />
            <br />
            IsMale:
            <asp:Label ID="IsMaleLabel" runat="server" Text='<%# Eval("IsMale") %>' />
            <br />
            SeatClass:
            <asp:Label ID="SeatClassLabel" runat="server" Text='<%# Eval("SeatClass") %>' />
            <br />
            Price:
            <asp:Label ID="PriceLabel" runat="server" Text='<%# Eval("Price") %>' />
            <br />
<br />
        </ItemTemplate>
        <AlternatingItemStyle BackColor="White" />
        <ItemStyle BackColor="#EFF3FB" />
        <SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
    <asp:Button ID="btnBack1" runat="server" PostBackUrl="~/Admin/TicketList.aspx" 
        Text="Back" />
</asp:Content>

